package com.kaifamiao.charset;

import java.nio.charset.Charset;

public class CharsetTest1 {

	public static void main(String[] args) {
		
		Charset charset = Charset.defaultCharset();
		System.out.println( charset );
		
		String charsetName = "GBK" ;
		charset = Charset.forName( charsetName );
		System.out.println( charset );
		
		charsetName = "KFM" ;
		System.out.println( Charset.isSupported( charsetName ) );

	}

}
